package com.demo.constant;

import com.demo.config.ProjectSettings;

import java.io.File;
import java.util.Properties;

public class ImageConstant {
    public static final String FILE_SEPERATOR = File.separator;
    public static String photoPath = new File(System.getProperty("user.dir")).getAbsolutePath() + FILE_SEPERATOR + "src" + FILE_SEPERATOR + "main" + FILE_SEPERATOR + "resources" + FILE_SEPERATOR + "images" + FILE_SEPERATOR;
    private static final Properties projectSetting = ProjectSettings.getInstance();

    private static final String IdCardFrontImageName = projectSetting.getProperty("IdCardFrontImageName");
    private static final String IdCardFrontImageSrcPath = photoPath + projectSetting.getProperty("IdCardFrontImageSrcName");
    private static final String IdCardFrontImageDesPath = photoPath + projectSetting.getProperty("IdCardFrontImageDesName");

    private static final String IdCardBackImageName = projectSetting.getProperty("IdCardBackImageName");
    private static final String IdCardBackImagePath = photoPath + IdCardBackImageName;

    private static final String ClientImageName = projectSetting.getProperty("ClientImageName");
    private static final String ClientImagePath = photoPath + ClientImageName;

    private static final String PrimaryBankCardImageName = projectSetting.getProperty("PrimaryBankCardImageName");
    private static final String PrimaryBankCardImage1kName = projectSetting.getProperty("PrimaryBankCardImage1kName");
    private static final String PrimaryBankCardImage2mName = projectSetting.getProperty("PrimaryBankCardImage2mName");

    private static final String PrimaryBankCardImagePath = photoPath + PrimaryBankCardImageName;
    private static final String PrimaryBankCardImage1kPath = photoPath + PrimaryBankCardImage1kName;
    private static final String PrimaryBankCardImage2mPath = photoPath + PrimaryBankCardImage2mName;

    private static final String EscratcheImagePath = photoPath + projectSetting.getProperty("EscratcheImageName");


    public static String getEscratcheImagePath() {
        return EscratcheImagePath;
    }

    public static String getIdcardFrontImageName() {
        return IdCardFrontImageName;
    }

    public static String getIdcardFrontImageSrcPath() {
        return IdCardFrontImageSrcPath;
    }

    public static String getIdcardFrontImageDesPath() {
        return IdCardFrontImageDesPath;
    }

    public static String getIdcardBackImageName() {
        return IdCardBackImageName;
    }

    public static String getIdcardBackImagePath() {
        return IdCardBackImagePath;
    }

    public static String getClientImageName() {
        return ClientImageName;
    }

    public static String getClientImagePath() {
        return ClientImagePath;
    }

    public static String getPrimaryBankcardImageName() {
        return PrimaryBankCardImageName;
    }

    public static String getPrimaryBankcardImagePath() {
        return PrimaryBankCardImagePath;
    }

    public static String getPrimaryBankcardImage1kName() {
        return PrimaryBankCardImageName;
    }

    public static String getPrimaryBankcardImage1kPath() {
        return PrimaryBankCardImage1kPath;
    }

    public static String getPrimaryBankcardImage2mName() {
        return PrimaryBankCardImageName;
    }

    public static String getPrimaryBankcardImage2mPath() {
        return PrimaryBankCardImage2mPath;
    }
}
